package com.tea.Model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SpecStockUpdateDTO {
    
    @NotNull(message = "规格ID不能为空")
    private Long specId;
    
    @NotNull(message = "操作类型不能为空")
    private String operation; // "increase" 增加, "decrease" 减少, "set" 设置
    
    @NotNull(message = "数量不能为空")
    private Long quantity;
    
}